package com.tyk.bookstore.back.product.service.impl;

import com.tyk.bookstore.back.product.model.dto.Collect4TaskDto;
import com.tyk.bookstore.back.product.repository.BookCollectRepository;
import com.tyk.bookstore.back.product.service.CollectApiService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tyk
 * @description CollectApiServiceImpl
 */
@Service
@RequiredArgsConstructor
public class CollectApiServiceImpl implements CollectApiService {

    private final BookCollectRepository bookCollectRepository;

    @Override
    public List<Collect4TaskDto> getCollect4TaskDtoList() {
        return bookCollectRepository.selectCollectDtoList();
    }
}
